<template>
	<view class="review-box page-box">
		<view style="height: 148rpx;">
			<u-navbar bgColor="#2BB66C" height="74">
				<view class="u-nav-slot-left flex-center" slot="left" @click="goBack">
					<image src="@/static/images/review/fanhui-nav.png"></image>
				</view>
				<view slot="center" class="u-nav-slot-center">
					测试记录
				</view>
			</u-navbar>
		</view>
		<view class="content">
			<view class="flex-align-center">
				<view class="datetime-box flex-align-center">
					<span>测试时间：</span>
					<uni-datetime-picker   v-model="rangeData" type="daterange" rangeSeparator="-" />
				</view>
				<view class="search-btn flex-center">
					查询
				</view>
			</view>
			<view class="table-box">
				<tableCustom :thList="thList"></tableCustom>
			</view>


		</view>


	</view>
</template>

<script>
	import tableCustom from '../table/table.vue';
	export default {
		components: {
			tableCustom
		},
		data() {
			return {
				thList: [{
						name: '序号',
						align: 'center',

					},
					{
						name: '试卷名称',
						align: 'center',

					},
					{
						name: '题量',
						align: 'center',
					},
					{
						name: '正确率',
						align: 'center',
					},
					{
						name: '测试时间',
						align: 'center',
					},
					{
						name: '试卷详情',
						align: 'center',
					},
					{
						name: '操作',
						align: 'center',
					}
				],
				rangeData: [],
				list: [{
					name: '认词'
				}, {
					name: '听写'
				}, {
					name: '默写',
				}],
				current: 0
			};
		},
		methods: {
			goBack() {
				this.$common.goBack()
			},
			tabChange(val) {
				console.log(val);
				this.current = val;
			},
			maskClick(e) {
				console.log('maskClick事件:', e);
			}
		}
	}
</script>

<style lang="scss">
	@function px_2_vw($px) {
		@return #{$px * 100 / 1920}vw;
	}

	.page-box {}

	.u-nav-slot-left {
		width: px_2_vw(80);
		height: px_2_vw(80);
		background: rgba(17, 77, 10, 0.5);
		border-radius: 50%;

		image {
			width: px_2_vw(35);
			height: px_2_vw(43);
		}
	}

	.u-nav-slot-center {
		color: #fff;
		font-size: px_2_vw(48);
	}

	.u-nav-slot-right {}

	.content {
		padding: 42rpx 54rpx;
	}



	.active {
		background-color: #2A61FC !important;
		color: #fff !important;
		border: 1rpx solid #2A61FC !important;
	}

	/deep/ .uni-date__x-input {
		height: px_2_vw(42) !important;
		line-height: px_2_vw(42) !important;
		padding: 0 !important;
	}

	/deep/ .uni-date-x {
		height: px_2_vw(47) !important;
		line-height: px_2_vw(47) !important;
		padding: 0 !important;
	}

	.search-box {
		width: 70%;
		height: px_2_vw(119) !important;
		margin: 20rpx auto;

	}

	.datetime-box {
		width: px_2_vw(550);
		background: #fff;
		border-radius: 4px;
		color: #6F6C6C;
	}

	::v-deep .uni-date-x uni-text {
		display: none;
	}

	.search-btn {
		width: px_2_vw(115);
		height: px_2_vw(54);
		background: #FF6000;
		border-radius: 50rpx;
		font-size: px_2_vw(28);
		color: #fff;
		margin-left: 37rpx;
	}

	.table-box {
		margin-top: 37rpx;
	}
</style>